/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kurvykurvy.actions;

import com.kurvykurvy.core.ui.KurvyLayoutTopComponent;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.openide.windows.TopComponent;
import org.openide.windows.WindowManager;

public final class NewKurvyAction implements ActionListener
{

    public void actionPerformed( ActionEvent e )
    {
        // TODO implement action body
        performAction();
    }

    public void performAction()
    {
        KurvyLayoutTopComponent tc = KurvyLayoutTopComponent.findInstance();
//        javax.swing.JOptionPane.showMessageDialog( tc, "Kurvy : " + ( ( tc.isOpened() )? "open" : "closed" ) );
        tc.open();
        tc.requestActive();
    }
}
